<template>
    <p>子元素</p>
    <slot :sonName="name">这是子组件的默认内容</slot>
</template>


<script>
export default {
    data(){
        return {
            name:'tom'
        }
    }
}

</script>